﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TfsBugger.Util.Ui
{
    public static class FormExtensions
    {
        public static void DoInvoke(this Form frm, MethodInvoker work)
        {
            if (frm.InvokeRequired)
            {
                frm.Invoke(work);
                return;
            }

            work();
        }
    }
}
